﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="hotel.aspx.cs" Inherits="EZCRS.HCMS.Web.manage.AIR.hotel" %>

<%@ Register Src="../usercontrol/titlepage.ascx" TagName="titlepage" TagPrefix="uc2" %>
<%@ Register Assembly="Book38.Net.CustomControl" Namespace="Book38.Net.CustomControl"
    TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
 


    

    

    <script src="../../common/calendar1.js" language="javascript" type="text/javascript"></script>
    <script src="../../Common/jquery-1.2.6.min.js"></script>
    
    
    <script>
    
        $(document).ready(function() {
            $("#btnsave").click(function() {
            
                //验证
                var regxDay = /^\d+$/;
                var regxNum = /^-?\d+$/;
                var regxRate = /^-?\d+(\.\d+)?$/;
                
                if(!checkValue('txtMin', regxDay, false)) {
                    alert('请填写正确的最小入住天数！');
                    return false;
                }
                
                if(!checkValue('txtMax', regxDay, false)) {
                    alert('请填写正确的最大入住天数！');
                    return false;
                }
                
                                                            
                return true;
                
            });
        });
    
        function checkValue(obj, regx, need) {

            var elem = document.getElementById(obj);
            
            if(elem.value == '' && need) {
                elem.focus();
                return false;
            }
            
            if(elem.value != ''){    
                if (!regx.exec(elem.value)) {
                    elem.focus();
                    return false;
                }
            }
            
            return true;
        }
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <uc2:titlepage ID="Titlepage1" runat="server" inittitle="<%$ Resources:Site, TitleExpression %>">
    </uc2:titlepage> 
    <!--#include file="nav.htm"-->
    <br />
    <table align="center" border="0" cellspacing="0" cellpadding="0" class="main-table">
                                <tr>
                                    <th colspan="2" class="minfo-title">
                                        酒店级：
                                    </th>
                                </tr>
                                <tr>
                                    <td width="80">
                                        时间段：
                                    </td>
                                    <td>
                                        <input id="startdate" type="text" runat="server" class="text-line" 
                                            value="yyyy-MM-dd" />
                                        &nbsp;
                                        <input id="enddate" type="text" runat="server" class="text-line" 
                                            value="yyyy-MM-dd" />
                                        </td>
                                </tr>
                                <tr>
                                    <td>
                                        星期设置：
                                    </td>
                                    <td>
                                        <asp:CheckBoxList ID="cblWeek" runat="server" RepeatDirection="Horizontal">
                                            
                                        </asp:CheckBoxList>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        可用性：
                                    </td>
                                    <td>
                                        <table width="90%">
                                            <tr>
                                                <td>
                                                    状态：<asp:DropDownList ID="ddlStatus" runat="server">
                                                        
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    最少入住天数：<cc1:WebTextBox ID="txtMin" runat="server" CssClass="text-line" Width="50px"><Value>
</Value></cc1:WebTextBox></td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    最多入住天数：<cc1:WebTextBox ID="txtMax" runat="server" CssClass="text-line" Width="50px"><Value>
</Value></cc1:WebTextBox></td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    提前预订期(小时) ：<cc1:WebTextBox ID="txtAdv" runat="server" CssClass="text-line" Width="50px"><Value>
</Value></cc1:WebTextBox></td>
                                            </tr>
                                            </table>
                                    </td>
                                </tr>
                                </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">

                    <tr>
                        <td align="center" valign="middle">
                            <asp:Button ID="btnsave" runat="server" CssClass="bttn" Text="保存" 
                                onclick="btnsave_Click" />
                        </td>
                    </tr>
                </table>

    </form>
</body>
</html>
<script>
//initprovince();
$F("navs1").className="title1";	
</script>